<%@ page import="java.util.List" %>
<%@ page import="com.foreknow.model.Guestbook" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/8/22
  Time: 11:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/ManagerSystemWebProject/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    用户名: ${username}
    <table class="table table-hover">
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td>电话</td>
            <td>邮箱</td>
            <td>标题</td>
            <td>内容</td>
            <td>创建时间</td>
            <td>操作</td>
        </tr>

        <c:forEach items="${list}" var="gb">
            <tr>
                <td>${gb.id}</td>
                <td>${gb.name}</td>
                <td>${gb.phone}</td>
                <td>${gb.email}</td>
                <td>${gb.title}</td>
                <td>${gb.content}</td>
                <td>${gb.createdtime}</td>
                <td>
                    <a href="manager?id=${gb.id}&q=delete" class="btn btn-danger btn-lg active">删除</a>
                    <a href="manager?id=${gb.id}&q=update" class="btn btn-danger btn-lg active">修改</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>
